Skip to main content
POST
Rebuild Replenishment Index

Authorizations

Authorization
string
header
required

Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.

Path Parameters

id
integer<int32>
required

The id of the referenced Warehouse.

Body

application/json

Rebuild request for one Warehouse's Replenishment Index.

mode
enum<string>
required

soft coalesces into the pending generation and lets a build already in progress finish and publish. force additionally marks a running build superseded, so its result is never published and the fresh generation recomputes everything from scratch — repeated force requests at intervals shorter than a full build defer publication indefinitely. Both request a new generation when none is pending. force is for an explicit operator-initiated full recalculation; automation should default to soft.

Available options:
soft,
force

Response

Accepted - The rebuild request was durably recorded. From 2026-08, requested_revision is this caller's completion predicate: the rebuild is complete once the status endpoint's built_revision (also the report's meta.built_revision) is greater than or equal to it. Requests pinned to 2025-07 receive the equivalent requested_generation and compare it to published_generation. A superseded build never publishes, and any successor publishes with a higher number computed from data read after this request.

requested_revision
integer<int64>
required

The pending revision this request coalesced into. Repeated requests made before the build completes return the same number. 2026-08 and later.

Required range: x >= 1
meta
object
required
requested_generation
integer<int64>

The pending generation this request coalesced into. Repeated requests made before the build completes return the same number. 2025-07 only.

Required range: x >= 1